Technote PR 02 | May 1987 |
We realize that there are situations where the application may know the best method for printing a particular document and may want to bypass our dialogs. Unfortunately, using your own dialogs or not using the dialogs at all, requires setting the necessary fields in the print record yourself. There are a number of problems:
* Many of the fields in the print record are undocumented, and, as we change the internal architecture of the Printing Manager to accommodate new devices, those undocumented fields are likely to change.
* Each driver uses the private, and many of the public, fields in the print record differently. The implications are that you would need intimate knowledge of how each field is used by each available driver, and you would have to set the fields in the record differently depending on the driver chosen. As the number of available printer-type drivers increases, this can become a cumbersome task.
To be compatible with future printer-like devices, it is essential that your
application print in a device-independent manner. Avoid testing undocumented
fields, setting fields in the print record directly and bypassing the existing
print dialogs. Use the Printing Manager dialogs, PrintDefault and
PrValidate to set up the print record for you.
Further Reference:
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help